/**
* Copyright (c) By zengqh.
*
* This program is just for fun or demo, in the hope that it  
* will be useful, you can redistribute it and/or modify freely.
*
* Time: 2013/03/09
* File: ProgramAttribute.h
* Blog: http://www.cnblogs.com/zengqh/
**/

#pragma once

#include <render_system/BaseRenderSystem/ProgramAttribute.h>

namespace HY
{
class OGLProgramAttribute : public ProgramAttribute
{
	friend class Program;
public:
	virtual bool set(VertexBuffer* vb, uint32 idx);
	virtual bool set(VertexBuffer* vb, uint32 semantic, uint32 channel = 0);

private:
	OGLProgramAttribute(int32 loc);
	virtual ~OGLProgramAttribute();

private:
	int32		loc_;
};

}